import { createNaiveStorage } from 'naive-storage'

const storage = createNaiveStorage<string>({
    debug: import.meta.env.DEV
})
const KEY = getLsKey(STORAGE_TOKEN_KEY)
export function setStorageToken(token: string) {
    storage.set(KEY, token)
}
export function getStorageToken() {
    return storage.get(KEY)
}
export function removeStorageToken() {
    storage.del(KEY)
}
export function isLogin() {
    return Boolean(getStorageToken())
}